package com.voltmao.persistent.mapper;

import org.apache.ibatis.annotations.Param;
import com.voltmao.persistent.model.DocApply;
import com.voltmao.persistent.model.DocApplyCriteria;

import java.util.List;
import java.util.Map;

public interface DocApplyMapper {
    int countByExample(DocApplyCriteria example);

    int deleteByExample(DocApplyCriteria example);

    int deleteByPrimaryKey(String dataId);

    int insert(DocApply record);

    int insertSelective(DocApply record);

    List<DocApply> selectByExample(DocApplyCriteria example);

    DocApply selectByPrimaryKey(String dataId);

    int updateByExampleSelective(@Param("record") DocApply record, @Param("example") DocApplyCriteria example);

    int updateByExample(@Param("record") DocApply record, @Param("example") DocApplyCriteria example);

    int updateByPrimaryKeySelective(DocApply record);

    int updateByPrimaryKey(DocApply record);

    DocApply selectByExampleForOne(DocApplyCriteria example);

    Map<String, Object> selectMapByPrimaryKey(String dataId);

    Map<String, Object> selectMapByExampleForOne(DocApplyCriteria example);

    List<Map<String, Object>> selectMapByExample(DocApplyCriteria example);

    /**
     * 获取待审核申请数量
     */
    int countToBeAudit();
}